home *** CD-ROM | disk | FTP | other *** search
- Defining entities
-
- To define your own entities you can call the procedure 'defentities'
- in your config.tcl (for global defs) or ~/.tkHTML (personal defs)
-
- The procedure has the following parameters:
-
- defentities name iso key ent esc1 esc2 text {spon 1} {eson 1}
-
- name : any name you like...
- see entities.tcl for names already used
- ( they may be longer than two chars... )
- iso : the character you want to get finally on screen, it's the character
- typed on special national keyboards. How to get it???
- Type the entity in tkHTML by hand, preview it, cut and paste it...
- or use its octal number (it's safer...), e.g. \344 for a-umlaut
- (you can do first cut & paste into a file described above
- and view it with 'od -c' to get the numbers...)
-
- key : its name in X11 (keysym) look in your X-Reference-Manual, local
- keysym-tables... for ideas
- ent : its HTML-entity
- esc1 : number of escape character 0=" 1=' 2=`, you may define more...
- esc2 : the character typed after escape character
- text : any text for menu-entry
- spon : change typed special char to entity, if true (1) do nothing if false (0)
- eson : change escaped char to entity, if it is true (1) do nothing if false (0)
-
- if you want to add an escape character, you have to include the lines:
-
- # all escape characters
- set esclist [ list "\"" "'" "`" ]
- set nesc [ llength $esclist ]
- # what to do for doubled escape characters ( typing "" -> " )
- set escesclist [ list """ "'" "`" ]
-
- and append your escape character there...
-